Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch VariableScope to link directly to its parent #2141

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

tsholmes
Copy link
Member

@tsholmes tsholmes commented Oct 22, 2017

This avoids bouncing back and forth through the stack to find the parent scopes by just linking them directly on creation.

This was meant as a prerequisite to start caching variable lookups, but actually on its own resulted in a ~8% speedup.

@Dunbaratu Dunbaratu merged commit 5189cad into KSP-KOS:develop Oct 27, 2017
@tsholmes tsholmes deleted the fix/scope_link branch October 27, 2017 02:35
Dunbaratu added a commit to Dunbaratu/KOS-1 that referenced this pull request Oct 29, 2017
TODO list before this becomes ready:

[ ] - user docs need to talk about function's scoping changes.
[ ] - breaking warning drafted about parameters having been global before but not now.
@Dunbaratu Dunbaratu added this to the v1.1.4.0 milestone Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants